class CoursesController < ApplicationController
  
  def index
    @courses = Course.all_in_order
  end

  def show
    @course = Course.find(params[:id])
  end
  
  def create
    c = Course.new(params[:course])
    c.save
    redirect_to root_url
  end
end
